#!/usr/bin/env bash
cd "$(dirname "$0")" || exit 1

export NODE_CONFIG_REGISTRY=https://mirrors.cloud.tencent.com/npm/
npx pnpm install
npx pnpm build
cat src/userscript.js > dist/userscript.js
cat dist/main.js >> dist/userscript.js
